/* 
  Animation 微动画  
  基于ColorUI组建库的动画模块 
 */

/* css 滤镜 控制黑白底色gif的 */
.gif-black {
  mix-blend-mode: screen;
}

.gif-white {
  mix-blend-mode: multiply;
}


/* Animation css */
[class*=colorui-animation-] {
  animation-duration: .5s;
  animation-timing-function: ease-out;
  animation-fill-mode: both
}

.colorui-animation-fade {
  animation-name: colorui-anim-fade;
  animation-duration: .8s;
  animation-timing-function: linear
}

.colorui-animation-scale-up {
  animation-name: colorui-anim-scale-up
}

.colorui-animation-scale-down {
  animation-name: colorui-anim-scale-down
}

.colorui-animation-slide-top {
  animation-name: colorui-anim-slide-top
}

.colorui-animation-slide-bottom {
  animation-name: colorui-anim-slide-bottom
}

.colorui-animation-slide-left {
  animation-name: colorui-anim-slide-left
}

.colorui-animation-slide-right {
  animation-name: colorui-anim-slide-right
}

.colorui-animation-shake {
  animation-name: colorui-anim-shake
}

.colorui-animation-reverse {
  animation-direction: reverse
}

@keyframes colorui-anim-fade {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@keyframes colorui-anim-scale-up {
  0% {
    opacity: 0;
    transform: scale(.2)
  }

  100% {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes colorui-anim-scale-down {
  0% {
    opacity: 0;
    transform: scale(1.8)
  }

  100% {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes colorui-anim-slide-top {
  0% {
    opacity: 0;
    transform: translateY(-100%)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes colorui-anim-slide-bottom {
  0% {
    opacity: 0;
    transform: translateY(100%)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes colorui-anim-slide-left {
  0% {
    opacity: 0;
    transform: translateX(-100%)
  }

  100% {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes colorui-anim-slide-right {
  0% {
    opacity: 0;
    transform: translateX(100%)
  }

  100% {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes colorui-anim-shake {

  0%,
  100% {
    transform: translateX(0)
  }

  10% {
    transform: translateX(-9px)
  }

  20% {
    transform: translateX(8px)
  }

  30% {
    transform: translateX(-7px)
  }

  40% {
    transform: translateX(6px)
  }

  50% {
    transform: translateX(-5px)
  }

  60% {
    transform: translateX(4px)
  }

  70% {
    transform: translateX(-3px)
  }

  80% {
    transform: translateX(2px)
  }

  90% {
    transform: translateX(-1px)
  }
}